<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>待办事项管理</title>
    <link rel="stylesheet" href="styles.css">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
</head>
<body>
    <div class="container">
        <header>
            <h1><i class="fas fa-tasks"></i> 待办事项管理</h1>
        </header>

        <div class="add-task">
            <input type="text" id="taskTitle" placeholder="任务标题" maxlength="50">
            <textarea id="taskDescription" placeholder="任务描述（可选）" maxlength="200"></textarea>
            <button id="addTaskBtn" class="btn-primary">
                <i class="fas fa-plus"></i> 添加任务
            </button>
        </div>

        <div class="filters">
            <label>
                <input type="radio" name="filter" value="all" checked>
                <span>全部</span>
            </label>
            <label>
                <input type="radio" name="filter" value="pending">
                <span>未完成</span>
            </label>
            <label>
                <input type="radio" name="filter" value="completed">
                <span>已完成</span>
            </label>
        </div>

        <div class="task-stats">
            <span>总计: <strong id="totalTasks">0</strong></span>
            <span>未完成: <strong id="pendingTasks">0</strong></span>
            <span>已完成: <strong id="completedTasks">0</strong></span>
        </div>

        <div id="taskList" class="task-list">
            <div class="empty-state">
                <i class="fas fa-clipboard-list"></i>
                <p>暂无待办事项</p>
                <small>添加一个任务开始吧！</small>
            </div>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>
